var express = require('express'),
    swig = require('swig-templates'),
    request = require('request'),
    router = express.Router(),
    common = require('../base/common.js');
router.get('/account-manage',function(req, res,next) {
    request.post({
        url: config.resourcePath.apiRoot + "/index.php?m=personalCenter&a=userDetails",
        formData: {
            u_id: req.cookies.u_id?req.cookies.u_id:''
        }
    }, function (error, response, body) {
        var thatData = {};
        try {
            var result = JSON.parse(body);
            console.log(result);
            thatData.thatData = result;
            res.render('my-haier/account_manage/account_manage', thatData);
        } catch (e) {
        }
    });
});
module.exports = router;